package com.main.modulemysql.entity;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.enums.IdType;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * @Auther: IceZhang
 * @Date: 2018/8/3 13:07
 * @Description:
 */
@TableName("gateway_api_define")
public class GatewayApiDefine extends Model<GatewayApiDefine> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private String id;
    private String path;
    @TableField("service_id")
    private String serviceId;
    private String url;
    private Integer retryable;
    private Integer enabled;
    @TableField("strip_prefix")
    private Integer stripPrefix;
    @TableField("api_name")
    private String apiName;


    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getPath() {
        return path;
    }

    public void setPath(String path) {
        this.path = path;
    }

    public String getServiceId() {
        return serviceId;
    }

    public void setServiceId(String serviceId) {
        this.serviceId = serviceId;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public Integer getRetryable() {
        return retryable;
    }

    public void setRetryable(Integer retryable) {
        this.retryable = retryable;
    }

    public Integer getEnabled() {
        return enabled;
    }

    public void setEnabled(Integer enabled) {
        this.enabled = enabled;
    }

    public Integer getStripPrefix() {
        return stripPrefix;
    }

    public void setStripPrefix(Integer stripPrefix) {
        this.stripPrefix = stripPrefix;
    }

    public String getApiName() {
        return apiName;
    }

    public void setApiName(String apiName) {
        this.apiName = apiName;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "GatewayApiDefine{" +
        ", id=" + id +
        ", path=" + path +
        ", serviceId=" + serviceId +
        ", url=" + url +
        ", retryable=" + retryable +
        ", enabled=" + enabled +
        ", stripPrefix=" + stripPrefix +
        ", apiName=" + apiName +
        "}";
    }
}
